package com;

import java.util.*;

public class Demo5 {

	public static void main(String[] dsa) {
		A a = new A();
		Scanner input = new Scanner(System.in);
		while (1 == 1) {
			System.out.println("请猜测数字");
			int i = input.nextInt();
			if (i < a.v) {
				System.out.println("小了");
				continue;
			} else if (i > a.v) {
				System.out.println("大了");
				continue;
			} else {
				System.out.println("恭喜你猜对了！");
				break;
			}
		}
	}
}

class A {
	public int v = 100;
}
